import request from '@/utils/request'

// 查询活动房间列表
export function listActivityRoom(query) {
  query.pageNum = 1
  query.pageSize = 999
  return request({
    url: '/logex/activityRoom/list',
    method: 'get',
    params: query
  })
}

// 查询活动房间详细
export function getActivityRoom(id) {
  return request({
    url: '/logex/activityRoom/' + id,
    method: 'get'
  })
}

// 新增活动房间
export function addActivityRoom(data) {
  return request({
    url: '/logex/activityRoom',
    method: 'post',
    data: data
  })
}

// 修改活动房间
export function updateActivityRoom(data) {
  return request({
    url: '/logex/activityRoom',
    method: 'put',
    data: data
  })
}

// 删除活动房间
export function delActivityRoom(id) {
  return request({
    url: '/logex/activityRoom/' + id,
    method: 'delete'
  })
}

export function addActivityRoomBatch(data) {
  return request({
    url: '/logex/activityRoom/insertBatch',
    method: 'post',
    data: data
  })
}
